package kr.hkit.PowerJava.algorithm;

public class StackTest {
	public static void main(String[] args) {
		int size = 3;
		Stack stack = new Stack(size);
		stack.push("a");
		stack.prnStack();
		stack.push("b");
		stack.prnStack();
		for (int i = 0; i < 3; i++) {
			System.out.println("pop " + stack.pop());
			stack.prnStack();
		}

		for (int i = 0; i < size+98; i++) {
			stack.push(String.format("%c", i)); //is Full
			stack.prnStack();
		}
	}
}
